//
//  CircleMineInforTVCell.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/2.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CircleMineInforTVCell.h"

@implementation CircleMineInforTVCell
{
    GLGWImageView *riImagView;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self hiderLine:NO];
        [self setSepartionLineWith:lineModel_Half];
        CGFloat titleX = kWidthProportion_In_iPhoneTriploid(15);
        CGFloat titleY = kHeightProportion_In_iPhoneTriploid(17);
        CGFloat titleW = kWidthProportion_In_iPhoneTriploid(200);
        CGFloat titleH = kHeightProportion_In_iPhoneTriploid(20);
        GLGWLabel *titleLab = [[GLGWLabel alloc] initWithFrame:CGRectMake(titleX, titleY, titleW, titleH) theFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        titleLab.centerY = 45;
        titleLab.text = @"头像";
        
        CGFloat imgRW = kWidthProportion_In_iPhoneTriploid(9);
        CGFloat imgRX = KScreenWidth - imgRW - kWidthProportion_In_iPhoneTriploid(15);
        CGFloat imgRY = kHeightProportion_In_iPhoneTriploid(17);
        CGFloat imgRH = kHeightProportion_In_iPhoneTriploid(16);
        GLGWImageView *imgRight = [[GLGWImageView alloc] initWithFrame:CGRectMake(imgRX, imgRY, imgRW, imgRH) inSuperView:self.contentView];
        imgRight.centerY = titleLab.centerY;
        imgRight.image = [UIImage imageNamed:@"jiantou"];
        
        CGFloat imgR2W = kWidthProportion_In_iPhoneTriploid(50);
        CGFloat imgR2X = imgRX - imgR2W - kWidthProportion_In_iPhoneTriploid(11);
        CGFloat imgR2Y = kHeightProportion_In_iPhoneTriploid(12);
        CGFloat imgR2H = imgR2W;
        GLGWImageView *imgRight2 = [[GLGWImageView alloc] initWithFrame:CGRectMake(imgR2X, imgR2Y, imgR2W, imgR2H) inSuperView:self.contentView];
        imgRight2.centerY = titleLab.centerY;
        imgRight2.image = [UIImage imageNamed:@"Qcode_p"];
        riImagView = imgRight2;
        
    }
    return self;
}

- (void)setRightImgView:(GLGWImageView *)rightImgView
{
    _rightImgView = rightImgView;
    riImagView = rightImgView;
}

@end
